<?php
require "admin/config/mysql.php";

class logModel
{

   public static function login($username,$password)
   {
		
		
		$pdo = mysqlPdo::getPdoConnect();
		$pdo -> setAttribute(PDO::ATTR_CASE, PDO::CASE_NATURAL);
		$rs = $pdo -> query("select * from user where username = '$username' and password = '$password'");
		$rs -> setFetchMode(PDO::FETCH_ASSOC);
		return $rs;

   }



}




